﻿using System;
using System.Collections.Generic;
using System.Text;

using GDCommon.Xml;
using GDBLL.Config.Model;
using GDCommon.Util;

namespace GDBLL.Config.BLL
{
    /// <summary>
    /// 实现IConfigManager 
    /// </summary>
    class ConfigBLL:IConfigBLL
    {
        private static object lockHelper = new object();

        #region 基本设置

        private static GrundInfo m_grundinfo = null;

        internal static string GrundinfoPath = Common.GetMapPath("~/config/GrundInfo.config");

        public static GrundInfo LoadGrundInfo()
        {
            lock (lockHelper)
            {
                m_grundinfo = (GrundInfo)XmlHelper.Load(typeof(GrundInfo), GrundinfoPath);
            }
            return m_grundinfo;
        }

        #endregion
        
    }
}
